from rest_framework.pagination import PageNumberPagination


class Pagination(PageNumberPagination):

    # 每页最多50条记录
    max_page_size = 50

    page_size = 10
    page_size_query_param = "s"
    page_size_query_description = "条/每页"

    page_query_param = "p"
    page_query_description = "第几页"
